package ModelImplementation

type MailMethod struct {
	itsAddress string
}

func (m *MailMethod)newMailMethod(address string)  {
	m.itsAddress =address
}

func (m *MailMethod) GetAddress() string {
	return m.itsAddress
}

//实现PaymentMethod中的Pay方法
func Pay(pc Model.Paycheck)  {
	pc.SetField("Disposition", "Mail")
}